import QtQuick 2.0
import QtQuick.Window 2.0

Window{
    visible: true
    width: 300;
    height: 160;
    title: "MyApp"
    Item {
        id: gradientGroup
        Rectangle{
            x:20;
            y:20;
            height: 120;
            width: 120;
            gradient: Gradient{
                GradientStop{ position: 0.0; color: "green"}
                GradientStop{ position: 1.0; color: "black"}
            }
        }

        Rectangle{
            x: 160;
            y: 20;
            height: 120;
            width: 120;
            gradient: Gradient{
                GradientStop{ position: 0.0; color: "black"}
                GradientStop{ position: 1.0; color: "green"}
            }
        }
    }
}

